
package com.hlkj.pay.app.finance;
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */

import com.hlkj.framework.common.pojo.CommonResult;
import com.hlkj.pay.vo.finance.req.MerchantFinanceRecordCommonReq;
import com.hlkj.pay.vo.finance.req.MerchantFinanceRecordReturnReq;
import com.hlkj.pay.vo.merchant.req.MerchantChargeReq;
import com.hlkj.pay.vo.order.OpenApiResult;
import com.hlkj.pay.vo.order.resp.PayOrderResp;
import com.hlkj.pay.vo.openapi.order.resp.PayOrderSubmitApiResp;

/**
 * @author HlpayTeam
 * @date 2024/11/14 15:31
 */
public interface IFinanceRecordAppService {

    /**
     *
     * @param merchantChargeReq
     * @return
     */
    CommonResult<PayOrderSubmitApiResp> merchantCharge(MerchantChargeReq merchantChargeReq);

    /**
     * 
     * @param merchantFinanceRecordReq
     * @return
     */
    CommonResult<Void> addFinanceRecord(MerchantFinanceRecordCommonReq merchantFinanceRecordReq);

    /**
     * 
     * @param respCommonResult
     * @return
     */
    String rechargeCallBack(OpenApiResult<PayOrderResp> respCommonResult);
    /**
     *
     * @param merchantFinanceRecordReturnReq
     */
    void returnFinanceRecord(MerchantFinanceRecordReturnReq merchantFinanceRecordReturnReq);
}
